//
//  FirstViewController.h
//  SleepDetective
//
//  Created by Fei Hu on 12/12/10.
//  Copyright 2010 Southern Methodist University. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreAudio/CoreAudioTypes.h>

@interface TestViewController : UIViewController {
	AVAudioRecorder *recorder;
	NSTimer *levelTimer;
	double lowPassResults;
	
	IBOutlet UIProgressView *progressBar;
	IBOutlet UILabel *warningLabel;
	IBOutlet UIButton *startBtn;
	
	UIImage *imgStart;
	UIImage *imgStop;
	
}

- (void)levelTimerCallback:(NSTimer *)timer;
- (IBAction)startNoiseTesting:(id)sender;

@property(nonatomic,retain)IBOutlet UIProgressView *progressBar;
@property(nonatomic,retain)IBOutlet UILabel *warningLabel;
@property(nonatomic,retain)IBOutlet UIButton *startBtn;
@property(nonatomic,retain)IBOutlet UIImage *imgStart;
@property(nonatomic,retain)IBOutlet UIImage *imgStop;
@end
